package com.jr9z.jrjz.service.impl;

import com.jr9z.jrjz.dao.RecruitMapper;
import com.jr9z.jrjz.entity.Recruit;
import com.jr9z.jrjz.service.RecruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:Mrzhang
 * @Description:
 * @Date:2019.03.25 21:56
 **/

@Service
public class RecruitServiceImpl implements RecruitService {

    @Autowired
    private RecruitMapper recruitMapper;

    @Override
    public int deleteByPrimaryKey(Integer recruitId) {
        return recruitMapper.deleteByPrimaryKey(recruitId);
    }

    @Override
    public int insert(Recruit record) {
        return recruitMapper.insert(record);
    }

    @Override
    public int insertSelective(Recruit record) {
        return recruitMapper.insertSelective(record);
    }

    @Override
    public Recruit selectByPrimaryKey(Integer recruitId) {
        return recruitMapper.selectByPrimaryKey(recruitId);
    }

    @Override
    public int updateByPrimaryKeySelective(Recruit record) {
        return recruitMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Recruit record) {
        return recruitMapper.updateByPrimaryKey(record);
    }

    @Override
    public Long getRecruitCount() {
        return recruitMapper.getRecruitCount();
    }

    @Override
    public List<Recruit> getAllRecruit() {
        return recruitMapper.getAllRecruit();
    }
}
